package pt.iscte.pcd.project.test;

import static org.junit.Assert.*;

import org.junit.Test;
import pt.iscte.pcd.project.local.LocalDirectory;
import pt.iscte.pcd.project.local.LocalFile;

public class test {

	@Test
	public void teste() {
		LocalDirectory teste = new LocalDirectory("root", null);
		LocalFile file = new LocalFile("teste", teste);

		file.createNew();
		assertTrue(file.writeLock());
		assertNotNull(file.getNrPessoasAEscrever());

	}
	
}
